Skip to content

[bug] tauri signer sign duplicate short flags (-f) #3483

@slantview

Description

@slantview

Describe the bug

There are two short flags, -f and -f for private key path and file.

yarn tauri signer sign -h   
yarn run v1.22.17
$ tauri signer sign -h
yarn-run-tauri-signer-sign 1.0.0-rc.5
Sign a file

USAGE:
    yarn run tauri signer sign [OPTIONS]

OPTIONS:
    -f, --private-key-path <PRIVATE_KEY_PATH>    Load the private key from a string
    -f, --file <FILE>                            Sign the specified file
    -h, --help                                   Print help information
    -k, --private-key <PRIVATE_KEY>              Load the private key from a file
    -p, --password <PASSWORD>                    Set private key password when signing
    -V, --version                                Print version information

Reproduction

  1. Turn tauri signer sign -h
  2. It has two flags.

Expected behavior

These short flags should be unique.

Platform and versions

yarn tauri info
yarn run v1.22.17
$ tauri info

Operating System - Mac OS, version 11.6.1 X64

Node.js environment
  Node.js - 17.2.0
  @tauri-apps/cli - 1.0.0-rc.4
  @tauri-apps/api - 1.0.0-rc.1

Global packages
  npm - 8.3.0
  pnpm - Not installed
  yarn - 1.22.17

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-x86_64-apple-darwin 

App directory structure
/node_modules
/public
/src-tauri
/build
/.git
/.vscode
/src

App
  tauri - 1.0.0-rc.2
  tauri-build - 1.0.0-rc.2
  tao - 0.6.2
  wry - 0.13.1
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: 'unsafe-eval' 'unsafe-inline' 'self' tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../build
  devPath - http://localhost:8000/
  framework - React
  bundler - Webpack
✨  Done in 5.55s.


### Stack trace

_No response_

### Additional context

_No response_

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions