searleser97 / cpbooster

Competitive Programming Booster
GNU General Public License v3.0
151 stars 31 forks source link

submit <filePath> [url] does not actually work #82

Closed user202729 closed 1 year ago

user202729 commented 1 year ago

Currently cpb submit path.c url does not actually work despite it being written in the documentation.

(I need to modify the source code as follows

diff --git a/app/src/index.ts b/app/src/index.ts
index 6ba57a3..5454c48 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -192,7 +192,7 @@ yargs
     (argv) => login(argv as unknown as ICommandLoginArgs)
   )
   .command(
-    ["submit <filePath>", "s"],
+    ["submit <filePath> [url]", "s"],
     descriptions.submit,
     (new_yargs) => {
       new_yargs

)

https://github.com/searleser97/cpbooster/blob/5c9add4/app/src/index.ts#L195

searleser97 commented 1 year ago

so, with that modification it works as expected ?