瀏覽代碼

keep dulwich pull command line similar to the Git CLI; suggested by Jelmer

Stefan Sperling 9 月之前
父節點
當前提交
e543e98283
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dulwich/cli.py

+ 2 - 2
dulwich/cli.py

@@ -602,8 +602,8 @@ class cmd_pack_objects(Command):
 class cmd_pull(Command):
     def run(self, args):
         parser = argparse.ArgumentParser()
-        parser.add_argument("--from_location", type=str)
-        parser.add_argument("--refspec", type=str, nargs="*")
+        parser.add_argument("from_location", type=str)
+        parser.add_argument("refspec", type=str, nargs="*")
         parser.add_argument("--filter", type=str, nargs=1)
         args = parser.parse_args(args)
         porcelain.pull(