massivebird / arcsearch

Digital game archive querying tool
GNU General Public License v3.0
0 stars 1 forks source link

Change archive path argument handling #5

Closed massivebird closed 9 months ago

massivebird commented 9 months ago

Related to #3

Currently, the first argument is the query, and the second is an archive path. However, I think the query should always be the last argument.

Examples of valid commands:

# simple query, can locate archive via env var
arcsearch "mario"
# specifying archive path
arcsearch "/mnt/d/game-archive" "mario"
# ^ using clap (second one is optional if even possible)
arcsearch --archive-path="mnt/d/game-archive" "mario"
arcsearch "mario" --archive-path="mnt/d/game-archive"